package com.dxy.yesas2020goals.study.partone.disignpattern.builderpattern.mytest;

/**
 * @author victorydeng
 * @Classname CakeTest
 * @Description TODO
 * @Date 2020/5/6 9:28
 * @Created by victorydeng
 */
public class CakeTest {
    public static void main(String[] args) {
        //使用建筑者模式 无需关心构建的顺序，
        Cake cake = new Cake();
        cake = Cake.builder().caketype("奶油").price(111d).name("奶油小蛋糕").build();
        System.out.println(cake.toString());
    }
}
